<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-10 08:31:04 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>git credential-cache</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Git">
                                Git                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="5e80f75a296f87a5b2b8923073342381f8ab1bdd4487de80d471211e0984a950/fd" data-source="git-credential-cache" onmousemove="i18n(this)">git-credential-cache</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="87c36bf5b96169fc4324045d6dbfe5c44f48a83cb4a54e7b3b9ff6556fcd80c1/b4" data-source="git-credential-cache - Helper to temporarily store passwords in memory" onmousemove="i18n(this)">git-credential-cache &mdash; &Pcy;&ocy;&mcy;&ocy;&shchcy;&ncy;&icy;&kcy; &dcy;&lcy;&yacy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &khcy;&rcy;&acy;&ncy;&iecy;&ncy;&icy;&yacy; &pcy;&acy;&rcy;&ocy;&lcy;&iecy;&jcy; &vcy; &pcy;&acy;&mcy;&yacy;&tcy;&icy;</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <div> <pre class="hljs language-lua">git <span class="hljs-built_in">config</span> credential.helper <span class="hljs-string">&apos;cache [&lt;options&gt;]&apos;</span></pre> </div> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="153d61d637c2f9bf9186fad9431a7c84d352b055a3091753792a8cc96303010d/db" data-source="This command caches credentials for use by future Git programs. The stored credentials are kept in memory of the cache-daemon process (instead of being written to a file) and are forgotten after a configurable timeout. Credentials are forgotten sooner if the cache-daemon dies, for example if the system restarts. The cache is accessible over a Unix domain socket, restricted to the current user by filesystem permissions." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &kcy;&ecy;&shcy;&icy;&rcy;&ucy;&iecy;&tcy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &dcy;&lcy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &bcy;&ucy;&dcy;&ucy;&shchcy;&icy;&mcy;&icy; &pcy;&rcy;&ocy;&gcy;&rcy;&acy;&mcy;&mcy;&acy;&mcy;&icy;  Git . &Scy;&ocy;&khcy;&rcy;&acy;&ncy;&iecy;&ncy;&ncy;&ycy;&iecy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &khcy;&rcy;&acy;&ncy;&yacy;&tcy;&scy;&yacy; &vcy; &pcy;&acy;&mcy;&yacy;&tcy;&icy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy; &kcy;&ecy;&shcy;-&dcy;&iecy;&mcy;&ocy;&ncy;&acy; (&acy; &ncy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &vcy; &fcy;&acy;&jcy;&lcy;) &icy; &zcy;&acy;&bcy;&ycy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &pcy;&ocy; &icy;&scy;&tcy;&iecy;&chcy;&iecy;&ncy;&icy;&icy; &ncy;&acy;&scy;&tcy;&rcy;&acy;&icy;&vcy;&acy;&iecy;&mcy;&ocy;&gcy;&ocy; &tcy;&acy;&jcy;&mcy;-&acy;&ucy;&tcy;&acy;. &Ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &zcy;&acy;&bcy;&ycy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &rcy;&acy;&ncy;&softcy;&shcy;&iecy;, &iecy;&scy;&lcy;&icy; &ucy;&mcy;&icy;&rcy;&acy;&iecy;&tcy; &dcy;&iecy;&mcy;&ocy;&ncy; &kcy;&ecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &iecy;&scy;&lcy;&icy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&acy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&gcy;&rcy;&ucy;&zhcy;&acy;&iecy;&tcy;&scy;&yacy;. &Kcy;&ecy;&shcy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&iecy;&ncy; &chcy;&iecy;&rcy;&iecy;&zcy; &scy;&ocy;&kcy;&iecy;&tcy; &dcy;&ocy;&mcy;&iecy;&ncy;&acy; Unix, &dcy;&ocy;&scy;&tcy;&ucy;&pcy; &kcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&mcy;&ucy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy; &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&mcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;&mcy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy;&mcy;&icy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;&ocy;&jcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ycy;.</span></p> <p><span data-i18n="0022b9c666818fe0a88112b53f102925a1fb4379b64bceefdc2acf58a613ae07/e0" data-source="You probably don&amp;rsquo;t want to invoke this command directly; it is meant to be used as a credential helper by other parts of Git. See &lt;a href=&quot;gitcredentials&quot;&gt;gitcredentials[7]&lt;/a&gt; or &lt;code&gt;EXAMPLES&lt;/code&gt; below." onmousemove="i18n(this)">&Vcy;&iecy;&rcy;&ocy;&yacy;&tcy;&ncy;&ocy;, &vcy;&ycy; &ncy;&iecy; &zcy;&acy;&khcy;&ocy;&tcy;&icy;&tcy;&iecy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy; &ecy;&tcy;&ucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy; &ncy;&acy;&pcy;&rcy;&yacy;&mcy;&ucy;&yucy;; &ocy;&ncy; &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy; &dcy;&lcy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &pcy;&ocy;&mcy;&ocy;&shchcy;&ncy;&icy;&kcy;&acy; &pcy;&ocy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&mcy; &dcy;&acy;&ncy;&ncy;&ycy;&mcy; &vcy; &dcy;&rcy;&ucy;&gcy;&icy;&khcy; &chcy;&acy;&scy;&tcy;&yacy;&khcy; Git. &Scy;&mcy;.  <a href="gitcredentials.html">gitcredentials[7]</a>  &icy;&lcy;&icy;  <code>EXAMPLES</code>  &ncy;&icy;&zhcy;&iecy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_options"><span data-i18n="d0db8b5e364b6989e4b8f38a2b3846b87d99a51c1592ebf35d21cc66405a8e39/b6" data-source="Options" onmousemove="i18n(this)">Options</span></h2> <div> <div> <dl> <dt id="Documentation/git-credential-cache.txt---timeoutltsecondsgt"><span data-i18n="456f912c674c0f03fbd3bb722542c3815ca1a613af72634f7439c035f1f43e57/5d" data-source="--timeout &amp;lt;seconds&amp;gt;" onmousemove="i18n(this)">--timeout &lt;seconds&gt;</span></dt> <dd> <p><span data-i18n="5c0a981b6dc556a3b1acb43734c7e79957ba92a63b01659d30eb17930cd8c607/db" data-source="Number of seconds to cache credentials (default: 900)." onmousemove="i18n(this)">&Kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &scy;&iecy;&kcy;&ucy;&ncy;&dcy; &dcy;&lcy;&yacy; &kcy;&ecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; (&pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;: 900).</span></p> </dd> <dt id="Documentation/git-credential-cache.txt---socketltpathgt"><span data-i18n="ac7fa18fe49ed9218a1fcd2f5d66ed45586950224152e5c0e957733c0958d868/c6" data-source="--socket &amp;lt;path&amp;gt;" onmousemove="i18n(this)">--socket &lt;path&gt;</span></dt> <dd> <p><span data-i18n="0fdfa69b6db9a85b4c2a8bb01275c49abbe31b4771e4e2eadfd2789352555055/53" data-source="Use &lt;code&gt;&amp;lt;path&amp;gt;&lt;/code&gt; to contact a running cache daemon (or start a new cache daemon if one is not started). Defaults to &lt;code&gt;$XDG_CACHE_HOME/git/credential/socket&lt;/code&gt; unless &lt;code&gt;~/.git-credential-cache/&lt;/code&gt; exists in which case &lt;code&gt;~/.git-credential-cache/socket&lt;/code&gt; is used instead. If your home directory is on a network-mounted filesystem, you may need to change this to a local filesystem. You must specify an absolute path." onmousemove="i18n(this)">&Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy;  <code>&lt;path&gt;</code>  &dcy;&lcy;&yacy; &scy;&vcy;&yacy;&zcy;&icy; &scy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&yucy;&shchcy;&icy;&mcy; &dcy;&iecy;&mcy;&ocy;&ncy;&ocy;&mcy; &kcy;&ecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; (&icy;&lcy;&icy; &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&iecy; &ncy;&ocy;&vcy;&ycy;&jcy; &dcy;&iecy;&mcy;&ocy;&ncy; &kcy;&ecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy; &iecy;&shchcy;&iecy; &ncy;&iecy; &zcy;&acy;&pcy;&ucy;&shchcy;&iecy;&ncy;). &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy;  <code>$XDG_CACHE_HOME/git/credential/socket</code> , &iecy;&scy;&lcy;&icy; &ncy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;  <code>~/.git-credential-cache/</code> ; &vcy; &ecy;&tcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &ncy;&iecy;&gcy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy;  <code>~/.git-credential-cache/socket</code> . &IEcy;&scy;&lcy;&icy; &vcy;&acy;&shcy; &dcy;&ocy;&mcy;&acy;&shcy;&ncy;&icy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &vcy; &scy;&iecy;&tcy;&iecy;&vcy;&ocy;&jcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;&ocy;&jcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&iecy;, &vcy;&acy;&mcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&ocy;&tcy;&rcy;&iecy;&bcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &iecy;&gcy;&ocy; &ncy;&acy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ucy;&yucy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;&ucy;&yucy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ucy;. &Vcy;&ycy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &acy;&bcy;&scy;&ocy;&lcy;&yucy;&tcy;&ncy;&ycy;&jcy; &pcy;&ucy;&tcy;&softcy;.</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_controlling_the_daemon"><span data-i18n="d1f84b5e182ef3f24e8b2ad19c7ececc624e5c243d09c5e5fbe526c259de0a18/ce" data-source="Controlling the daemon" onmousemove="i18n(this)">&Ucy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &dcy;&iecy;&mcy;&ocy;&ncy;&ocy;&mcy;</span></h2> <div> <p><span data-i18n="bce09d51ed1a7b617e7dab344e3a971b0194d64b5853f55feb67bd47541a78f1/29" data-source="If you would like the daemon to exit early, forgetting all cached credentials before their timeout, you can issue an &lt;code&gt;exit&lt;/code&gt; action:" onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &vcy;&ycy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy;, &chcy;&tcy;&ocy;&bcy;&ycy; &dcy;&iecy;&mcy;&ocy;&ncy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&icy;&lcy; &rcy;&acy;&bcy;&ocy;&tcy;&ucy; &rcy;&acy;&ncy;&softcy;&shcy;&iecy;, &zcy;&acy;&bcy;&ycy;&vcy; &vcy;&scy;&iecy; &kcy;&ecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &dcy;&ocy; &icy;&scy;&tcy;&iecy;&chcy;&iecy;&ncy;&icy;&yacy; &icy;&khcy; &icy;&scy;&tcy;&iecy;&chcy;&iecy;&ncy;&icy;&yacy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&iecy;  <code>exit</code> :</span></p> <div> <div> <pre class="hljs language-bash">git credential-cache <span class="hljs-built_in">exit</span></pre> </div> </div> </div> <h2 class="text-body-emphasis"  id="_examples"><span data-i18n="e68ee04dff59551b7d1ae07a2f8a00dc61d841628948da3d2781630706a05e92/38" data-source="Examples" onmousemove="i18n(this)">Examples</span></h2> <div> <p><span data-i18n="da192aa177bf1cb4a4b2716dd6447e2b8965a971198a04e870749df1f9f88200/15" data-source="The point of this helper is to reduce the number of times you must type your username or password. For example:" onmousemove="i18n(this)">&TScy;&iecy;&lcy;&softcy; &ecy;&tcy;&ocy;&gcy;&ocy; &pcy;&ocy;&mcy;&ocy;&shchcy;&ncy;&icy;&kcy;&acy; &mdash; &scy;&ocy;&kcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &rcy;&acy;&zcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&iecy; &vcy;&acy;&mcy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &vcy;&vcy;&ocy;&dcy;&icy;&tcy;&softcy; &icy;&mcy;&yacy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy; &icy;&lcy;&icy; &pcy;&acy;&rcy;&ocy;&lcy;&softcy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;:</span></p> <div> <div> <pre class="hljs language-ruby"><span class="hljs-variable">$ </span>git config credential.helper cache
<span class="hljs-variable">$ </span>git push <span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/example.com/repo</span>.git
<span class="hljs-title class_">Username</span>: &lt;type your username&gt;
<span class="hljs-title class_">Password</span>: &lt;type your password&gt;

[work <span class="hljs-keyword">for</span> <span class="hljs-number">5</span> more minutes]
<span class="hljs-variable">$ </span>git push <span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/example.com/repo</span>.git
[your credentials are used automatically]</pre> </div> </div> <p><span data-i18n="b0fa9add6174a8961e5c97d801d4c36f013e532b7f2f9e553dd043c78818b278/b2" data-source="You can provide options via the credential.helper configuration variable (this example increases the cache time to 1 hour):" onmousemove="i18n(this)">&Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &chcy;&iecy;&rcy;&iecy;&zcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ucy;&yucy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; credential.helper (&vcy; &ecy;&tcy;&ocy;&mcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &kcy;&ecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &ucy;&vcy;&iecy;&lcy;&icy;&chcy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &dcy;&ocy; 1 &chcy;&acy;&scy;&acy;):</span></p> <div> <div> <pre class="hljs language-lua">$ git <span class="hljs-built_in">config</span> credential.helper <span class="hljs-string">&apos;cache --timeout=3600&apos;</span></pre> </div> </div> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/git-credential-cache">https://git-scm.com/docs/git-credential-cache</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                            <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-credential-store.html">
                            git credential-store                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-cvsexportcommit.html">
                            git cvsexportcommit                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-cvsimport.html">
                            git cvsimport                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-cvsserver.html">
                            git cvsserver                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-daemon.html">
                            git daemon                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-describe.html">
                            git describe                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-diagnose.html">
                            git diagnose                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                   <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="git-credential-cache.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>